Repository navigation
docs(platform): state the loop reply rule on dispatchFlowID - #467
Open
sandunip-govtech wants to merge 1 commit into
Open
sandunip-govtech wants to merge 1 commit into
sandunip-govtech wants to merge 1 commit into
Conversation
A step that runs again in a loop must reply on the other side's token: a second dispatch names the flow already started, which keeps the first token, so the step would never complete.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
12 of 17 tasks
sthanikan2000
approved these changes
Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The comment on
dispatchFlowIDdescribes a step that runs again in a loop as if dispatching again were harmless: "a second dispatch of the same workflow from the same task names the flow already started". It isn't. A step that runs again has a newcallbackToken, but the other side returns the flow it already started, still holding the first token. Its decision then reaches a step that is no longer waiting, gets409, and the re-run step never completes. The comment now states this as a rule: a loop step must reply on the other side's token.The same wording was fixed in nsw-srilanka's
docs/WORKFLOW_GUIDE.mdin the review of OpenNSW/nsw-srilanka#1323.Type of Change
Changes Made
platform/tasktypes/external_review.go: thedispatchFlowIDcomment says that a step that runs again in a loop must reply on the other side's token rather than dispatch again, and why. No code changes.Testing
Comment only.
go test ./tasktypes/andgo vetpass inplatform.Checklist
Related Issues
Related to OpenNSW/nsw-srilanka#1316. Follow-up to #466.
Screenshots/Demo
N/A
Additional Notes
None.